package my.graduation.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @Author: RavenLyn
 * @Date: 2024-11-27
 *
 * 科室信息表
 */

@Data
@TableName("department") //映射
public class Department implements Serializable{

    /**
     * 主键
     */
//    @TableField("id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 科室名称
     */
    @TableField("name")
    private String name;

    /**
     * 科室描述
     */
    @TableField("description")
    private String description;
}
